<?php

/**
 * @Component('userService')
 */
class UserService {
    /**
     * @Resource()
     */
    private $userDAO;

    public function setUserDAO($userDAO) {
        $this->userDAO = $userDAO;
    }

    public function showUser() {
        echo "<p>Nome: ".$this->userDAO->getName().".</p>";
    }
}